package com.meida.module.bus.client.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.meida.common.mybatis.annotation.TableAlias;
import com.meida.common.mybatis.base.entity.AbstractAllEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 产品分类表
 *
 * @author flyme
 * @date 2022-03-01
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("bus_category")
@TableAlias("category")
@ApiModel(value = "BusCategory对象", description = "产品分类表")
public class BusCategory extends AbstractAllEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "categoryId", type = IdType.ASSIGN_ID)
    private Long categoryId;

    @ApiModelProperty(value = "类别名称")
    private String categoryName;

    @ApiModelProperty(value = "分类码")
    private String categoryCode;

    @ApiModelProperty(value = "类别图标")
    private String categoryIcon;

    @ApiModelProperty(value = "跳转地址")
    private String categoryUrl;

    @ApiModelProperty(value = "新版类别图标")
    private String newCategoryIcon;

    @ApiModelProperty(value = "新版跳转地址")
    private String newCategoryUrl;

    @ApiModelProperty(value = "代理商跳转地址")
    private String agentUrl;

    @ApiModelProperty(value = "是否展示(1展示，2不展示)")
    private Integer isShow;

    @ApiModelProperty(value = "公司是否售卖(0不售卖,1售卖)")
    private Integer companySell;

    private Integer sort;

    @ApiModelProperty(value = "(是否允许删除1允许，2不允许)")
    private Integer allowDelete;
}
